import { persistentWritable } from '$utils/persist';

export const useConfigstore = () => {
	const lang = persistentWritable<string>('lang', '' /* 默认空字符 */);
	function set(lan: string) {
		lang.set(lan);
	}

	return {
		lang,
		set
	};
};
